
Hello,
I have a TreeView control, and i attached the TreeViewItem.ContextMenu to the following:
I immediately call the TextBox's Focus function, but right after the receiving the focus, it loses it.
This only happens if i use <ribbon:Button ../> (MenuItem works perfect)
I tried setting the Focusable of the button to False, but this didn't change anything.
Thanks in advance,
Miky.
I have a TreeView control, and i attached the TreeViewItem.ContextMenu to the following:
The NewFolderCommand creates a new TreeViewItem which have a TextBox inside it's template.
I immediately call the TextBox's Focus function, but right after the receiving the focus, it loses it.
This only happens if i use <ribbon:Button ../> (MenuItem works perfect)
I tried setting the Focusable of the button to False, but this didn't change anything.
Thanks in advance,
Miky.